package com.imagecollector.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 任务表
 * </p>
 *
 * @author wrf
 * @since 2024-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TaskSearchDTO extends BaseSearchDTO{

    @ApiModelProperty(value = "任务id")
    private Integer taskId;

    @ApiModelProperty(value = "地区id")
    private Integer districtId;

    @ApiModelProperty(value = "任务标题")
    private String title;

    @ApiModelProperty(value = "任务描述")
    private String describe;

    @ApiModelProperty(value = "图片数量（至少几张）")
    private Integer picNum;

    @ApiModelProperty(value = "任务完成奖金金额区间始")
    private BigDecimal rewardStart;

    @ApiModelProperty(value = "任务完成奖金金额区间末")
    private BigDecimal rewardEnd;

    @ApiModelProperty(value = "特别要求")
    private String requirement;

    @ApiModelProperty(value = "截止时间开始")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadlineStart;

    @ApiModelProperty(value = "截止时间结束")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadlineEnd;

    @ApiModelProperty(value = "是否允许多人接取 0否 1是")
    private Integer isRepeatedlyReceive;

    @ApiModelProperty(value = "任务状态 0未发布 1已发布未接取 2已接取未完成 3已完成待审核 4审核通过 5审核失败 7已打款 -1用户放弃 -2管理员取消 -3已过期")
    private Integer status;

    @ApiModelProperty(value = "发布时间开始")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeStart;

    @ApiModelProperty(value = "发布时间结束")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeEnd;

}
